﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CK_NQ_Select_Products_Window.aspx.cs" Inherits="CK_Products_NQ_Select_Products_Window" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>商品基本维护</title>
    <link href="../css/base.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server" target="_self">
    <div align="center">
        <table border="0" width="100%">
            <tr>
                <td class="title" style="width: 869px">
                    选择引用商品</td>
            </tr>
            <tr style="width:900px;">
                
                <td style="width: 879px">
                    库位:<asp:DropDownList ID="ddlStock" 
                        runat="server" DataTextField="STOCK_NAME" DataValueField="STOCK_ID" 
                        onselectedindexchanged="ddlStock_SelectedIndexChanged" AutoPostBack="True">
                                    
                                </asp:DropDownList>
                    区位:<asp:DropDownList ID="ddlArea" 
                        runat="server"  DataTextField="AREA_NAME" DataValueField="AREA_ID" 
                        onselectedindexchanged="ddlArea_SelectedIndexChanged" AutoPostBack="True">
                                    
                                </asp:DropDownList>
                    层:<asp:DropDownList ID="ddlFloor" runat="server" 
                        DataTextField="FloorName" DataValueField="FloorID" AutoPostBack="True">
                                
                            </asp:DropDownList>
                    关键字<asp:TextBox ID="Key" runat="server" Width="79px" Height="22px" ></asp:TextBox>&nbsp;条形码<asp:TextBox ID="barcode" runat="server" Width="79px" ></asp:TextBox>
                    </td>
            </tr>
            <tr style="width:900px;">
                
                <td style="width: 879px">
                    &nbsp;&nbsp; &nbsp; &nbsp;规格<asp:TextBox ID="standard" runat="server" Width="79px" ></asp:TextBox>
                    关键规格<asp:TextBox ID="keystandard" runat="server" Width="79px" ></asp:TextBox>
                    主批次<asp:TextBox ID="lot" runat="server" Width="79px" ></asp:TextBox>
                    供应商批次<asp:TextBox ID="supplylot" runat="server" Width="79px" ></asp:TextBox>
                    &nbsp; &nbsp;<asp:ImageButton ID="searchButton" runat="server" ImageUrl="~/images/sub_search.gif" OnClick="searchButton_Click" />
                    &nbsp; &nbsp; 
                    <asp:Label ID="Label1" runat="server" Text="没有您要的信息" Visible="False" ForeColor="Red"></asp:Label>
                    &nbsp;
                    &nbsp;&nbsp;</td>
            </tr>
            <tr>
                <td s>
                    &nbsp; &nbsp; &nbsp; &nbsp;
                    <asp:GridView ID="SearchResult" runat="server" AutoGenerateColumns="False"
                        BackColor="White" BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px"
                        CellPadding="4" Width="100%" OnRowDeleting="SearchResult_RowDeleting"  
                        DataKeyNames="ID" AllowPaging="True" 
                        onpageindexchanging="SearchResult_PageIndexChanging" PageSize="5">
                        <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
                        <Columns>
                            <asp:TemplateField HeaderText="商品名称" >                            
                            <ItemTemplate>                 
                                    <%# ((WX.WMS.DataModel.T_STORE)Container.DataItem).T_PRODUCT.NAME%>
                            </ItemTemplate>                 
                            </asp:TemplateField>         
                            <asp:TemplateField HeaderText="条形码" >                             
                            <ItemTemplate>                 
                                    <%# ((WX.WMS.DataModel.T_STORE)Container.DataItem).T_PRODUCT_DETAIL.BAR_CODE%>
                            </ItemTemplate>                 
                            </asp:TemplateField>    
                             <asp:TemplateField HeaderText="规格" >
                             <ItemStyle />
                            <ItemTemplate>                 
                                    <%# ((WX.WMS.DataModel.T_STORE)Container.DataItem).T_PRODUCT_DETAIL.STANDARD%>
                            </ItemTemplate>                 
                            </asp:TemplateField>    
                             <asp:TemplateField HeaderText="关键规格" >                             
                            <ItemTemplate>                 
                                    <%# ((WX.WMS.DataModel.T_STORE)Container.DataItem).T_PRODUCT_DETAIL.KeyStandard%>
                            </ItemTemplate>                 
                            </asp:TemplateField>    
                             <asp:TemplateField HeaderText="主批次" >                             
                            <ItemTemplate>                 
                                    <%# ((WX.WMS.DataModel.T_STORE)Container.DataItem).T_PRODUCT_DETAIL.LOT_NUMBER%>
                            </ItemTemplate>                 
                            </asp:TemplateField>    
                             <asp:TemplateField HeaderText="供应商批次" >                             
                            <ItemTemplate>                 
                                    <%# ((WX.WMS.DataModel.T_STORE)Container.DataItem).T_PRODUCT_DETAIL.SupplyLotNumber%>
                            </ItemTemplate>                 
                            </asp:TemplateField>    
                            <asp:TemplateField HeaderText="大件数" >                             
                            <ItemTemplate>                 
                                    <%# ((WX.WMS.DataModel.T_STORE)Container.DataItem).PACKET_QTY%>
                            </ItemTemplate>                 
                            </asp:TemplateField>      
                            <asp:TemplateField HeaderText="小件数" >                             
                            <ItemTemplate>                 
                                    <%# ((WX.WMS.DataModel.T_STORE)Container.DataItem).PACKET_QTY2%>
                            </ItemTemplate>                 
                            </asp:TemplateField>    
                            <asp:TemplateField HeaderText="净重" >                             
                            <ItemTemplate>                 
                                    <%# ((WX.WMS.DataModel.T_STORE)Container.DataItem).NET_WEIGHT%>
                            </ItemTemplate>                 
                            </asp:TemplateField>  
                            <asp:TemplateField HeaderText="毛重" >                             
                            <ItemTemplate>                 
                                    <%# ((WX.WMS.DataModel.T_STORE)Container.DataItem).GROSS_WEIGHT%>
                            </ItemTemplate>                 
                            </asp:TemplateField>        
                            <asp:TemplateField HeaderText="库位" >                             
                            <ItemTemplate>                 
                                    <%# ((WX.WMS.DataModel.T_STORE)Container.DataItem).T_FLOOR.T_STOCK_AREA.T_STOCK.STOCK_NAME%>
                            </ItemTemplate>                 
                            </asp:TemplateField>                                                                                     
                            <asp:TemplateField HeaderText="区位" >                             
                            <ItemTemplate>                 
                                    <%# ((WX.WMS.DataModel.T_STORE)Container.DataItem).T_FLOOR.T_STOCK_AREA.AREA_NAME%>
                            </ItemTemplate>                 
                            </asp:TemplateField>
                           <asp:TemplateField HeaderText="层" >                             
                            <ItemTemplate>                 
                                    <%# ((WX.WMS.DataModel.T_STORE)Container.DataItem).T_FLOOR.FloorName%>
                            </ItemTemplate>                 
                            </asp:TemplateField>                                                                                                                                                                                                                                                                                                                                
                            <asp:CommandField DeleteText="&lt;img border=0 src=../images/Select.gif /&gt;" ShowDeleteButton="True" />
                        </Columns>
                        <RowStyle BackColor="White" ForeColor="#003399" />
                        <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
                        <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
                        <HeaderStyle BackColor="#E2F3FA" Font-Bold="True" ForeColor="Black" />
                    </asp:GridView>
                    &nbsp;
                    
                </td>
            </tr>
            <tr>
                <td align="center" style="height: 17px; width: 769px;">
                    &nbsp; &nbsp;
                </td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>
